<html>
<body>
<?php

require('../connect_db.php');

$product_result = mysql_query("SELECT * FROM producten GROUP BY Naam") or die(mysql_error());

echo "<div style='width:80%; float:left; font:28px, Times new Roman;'><strong> Productoverzicht </strong>
		<table border='1'>
		<tr>
			<td width='450' align='center'><strong>Naam</strong></td>
			<td width='150' align='center'><strong>Prijs</strong></td>
			<td width='200' align='center'><strong>Toevoegen aan winkelmandje</strong></td>
		</tr>";

while($product_row = mysql_fetch_array($product_result))
	{
		$p_id = $product_row['Productid'];
		echo "<tr>
					<td align='left'>".$product_row['Naam']."</td>
					<td align='center'>".$product_row['Prijs']."</td>
					<td align='center'>".$Toevoegen_aan_winkelmandje = "<a href='tabel.php?id=$p_id'>".'<img src="http://www.spirituelemuziek.nl/contents/media/winkelmandje.jpg" img border = "0" width="32" height="32" />'."</td>
					</tr>";
	}
echo "</table>
		</div>";

echo "</div>
		<div style='clear:both;'></div>";

?>
</body>
</html>